package com.mt.restaurant.entity.sale;

import javax.persistence.*;
import java.io.Serializable;
import com.mt.common.core.annotation.DColumn;
import com.mt.common.core.annotation.DEntity;
import com.mt.common.core.web.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;



import java.math.BigDecimal;

@DEntity(label="地址",comment="",moduleLabel="销售管理")
@Entity(name="restaurant_address")
@Table(name = "restaurant_address" , indexes = { @Index(name = "index_address_type", columnList = "address_type")  })
@ApiModel(description = "地址:")
public class Address extends BaseEntity implements Serializable{
	private static final long serialVersionUID = 1L;

	@DColumn(index=3,label="地址简称",comment="",component="文本",where=false)
	@ApiModelProperty(value = "地址简称:")
	@Column(name="address_abbreviation",length=255,nullable=true,unique=false)
	private String addressAbbreviation;

	@DColumn(index=4,label="地址类别",codeTable="省",codeTableOptions="供应商,生产商,客户,工程,施工部位",comment="",component="字典下拉单选",where=false)
	@ApiModelProperty(value = "地址类别:")
	@Column(name="address_type",length=255,nullable=false,unique=false)
	private String addressType;

	@DColumn(index=5,label="业务id",comment="",component="数字，整数",where=false)
	@ApiModelProperty(value = "业务id:")
	@Column(name="business_id",length=255,nullable=false,unique=false)
	private Long businessID;

	@DColumn(index=6,label="详细地址",comment="包括省、市、县/区、街道、门牌号的地址",component="文本",where=false)
	@ApiModelProperty(value = "详细地址:包括省、市、县/区、街道、门牌号的地址")
	@Column(name="detailed_address",length=255,nullable=true,unique=false)
	private String detailedAddress;

	@DColumn(index=7,label="省",comment="",component="文本",where=false)
	@ApiModelProperty(value = "省:")
	@Column(name="province",length=255,nullable=true,unique=false)
	private String province;

	@DColumn(index=8,label="市",comment="",component="文本",where=false)
	@ApiModelProperty(value = "市:")
	@Column(name="city",length=255,nullable=true,unique=false)
	private String city;

	@DColumn(index=9,label="区县",comment="",component="文本",where=false)
	@ApiModelProperty(value = "区县:")
	@Column(name="district",length=255,nullable=true,unique=false)
	private String district;

	@DColumn(index=10,label="街道地址",comment="街道、门牌号的地址",component="文本",where=false)
	@ApiModelProperty(value = "街道地址:街道、门牌号的地址")
	@Column(name="street_address",length=255,nullable=true,unique=false)
	private String streetAddress;

	@DColumn(index=11,label="地址经度",comment="",component="对象选择",where=false)
	@ApiModelProperty(value = "地址经度:")
	@Column(name="address_longitude",length=255,nullable=true,unique=false)
	private BigDecimal addressLongitude;

	@DColumn(index=12,label="地址纬度",comment="",component="对象选择",where=false)
	@ApiModelProperty(value = "地址纬度:")
	@Column(name="address_latitude",length=255,nullable=true,unique=false)
	private BigDecimal addressLatitude;

	@DColumn(index=13,label="邮编",comment="",component="文本",where=false)
	@ApiModelProperty(value = "邮编:")
	@Column(name="zip_code",length=255,nullable=true,unique=false)
	private String zipCode;


	public String getAddressAbbreviation() {
		return this.addressAbbreviation;
	}

	public void setAddressAbbreviation(String addressAbbreviation) {
		this.addressAbbreviation = addressAbbreviation;
	}

	public String getAddressType() {
		return this.addressType;
	}

	public void setAddressType(String addressType) {
		this.addressType = addressType;
	}

	public Long getBusinessID() {
		return this.businessID;
	}

	public void setBusinessID(Long businessID) {
		this.businessID = businessID;
	}

	public String getDetailedAddress() {
		return this.detailedAddress;
	}

	public void setDetailedAddress(String detailedAddress) {
		this.detailedAddress = detailedAddress;
	}

	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return this.district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getStreetAddress() {
		return this.streetAddress;
	}

	public void setStreetAddress(String streetAddress) {
		this.streetAddress = streetAddress;
	}

	public BigDecimal getAddressLongitude() {
		return this.addressLongitude;
	}

	public void setAddressLongitude(BigDecimal addressLongitude) {
		this.addressLongitude = addressLongitude;
	}

	public BigDecimal getAddressLatitude() {
		return this.addressLatitude;
	}

	public void setAddressLatitude(BigDecimal addressLatitude) {
		this.addressLatitude = addressLatitude;
	}

	public String getZipCode() {
		return this.zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}



}
